package com.atguigu.order.service;

import com.atguigu.order.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author Y丶HS练习谷粒商城
 * @since 2022-10-09
 */
public interface OrderService extends IService<Order> {
    /**
     * 保存订单信息
     * @param courseId 课程订单
     * @param token
     * @return 订单号
     */
    String saveEntity(String courseId, String token);

    /**
     * 获取课程是否购买成功
     * @param courseId
     * @param token
     * @return
     */
    Boolean getCourseOrderInfoByCourseId(String courseId, String token);
}
